package cn.juque.workflow.api.enums;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>ProcessInstanceStatusEnum</li>
 * </ul>
 * @date 2023-02-04 19:06:31
 **/
public enum ProcessInstanceStatusEnum {

    /**
     * enum
     */
    WAIT("wait", "待提交"),
    ING("ing", "执行中"),
    SUSPENDED("suspended", "暂停执行"),
    END("end", "已完成"),
    REJECT("reject", "已驳回"),
    ;

    private final String code;

    private final String label;

    ProcessInstanceStatusEnum(String code, String label) {
        this.code = code;
        this.label = label;
    }

    public String getCode() {
        return code;
    }
}
